import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {path: '/',redirect:'/home'},
    // home
    {
      path: '/home',
      name: 'home',
      component: () => import('./views/Home.vue')
    },
    // 行业资讯
    {
      path: '/hyzx',
      name: 'hyzx',
      component: () => import('./views/hyzx/hyzx.vue')
    },
    {
      path: '/digitAlasset',
      name:'digitalAsset',
      component:() => import('./views/hyzx/digitalAsset.vue')
    },
    {
      path: '/downPkb',
      name:'downPkb',
      component:() => import('./views/pkb/downPkb.vue')
    },
    {
      path:'/industryApplication',
      name:'industryApplication',
      component:() => import('./views/hyzx/industryApplication.vue')
    },
    //产品服务
    {
      path:'/cpfw',
      name:'cpfw',
      component: () => import('./views/cpfw/cpfw.vue')
    },
    {
      path: '/blockchainBrowser',
      name: 'blockchainBrowser',
      component: () => import('./views/cpfw/blockchainBrowser.vue')
    },
    {
      path: '/chainDevelopment',
      name: 'chainDevelopment',
      component: () => import('./views/cpfw/chainDevelopment.vue')
    },
    {
      path: '/chainTraceabilitySystem',
      name: 'chainTraceabilitySystem',
      component: () => import('./views/cpfw/chainTraceabilitySystem.vue')
    },
    // {
    //   path: '/dapp',
    //   name: 'dapp',
    //   component: () => import('./views/cpfw/cpfw.vue')
    // },
    {
      path: '/tradingSystem',
      name: 'tradingSystem',
      component: () => import('./views/cpfw/tradingSystem.vue')
    },
    {
      path: '/walletService',
      name: 'walletService',
      component: () => import('./views/cpfw/walletService.vue')
    },
    
    // 关于我们
    // {
    //   path: '/gywm',
    //   name: 'gywm',
    //   component: () => import('./views/gywm.vue')
    // },
    {
      path: '/companyProfile',
      name: 'companyProfile',
      component: () => import('./views/gywm/companyProfile.vue')
    },
    {
      path: '/contactUs',
      name: 'contactUs',
      component: () => import('./views/gywm/contactUs.vue')
    },
    {
      path: '/cooperativePartner',
      name: 'cooperativePartner',
      component: () => import('./views/gywm/cooperativePartner.vue')
    },
    {
      path: '/dynamicNews',
      name: 'dynamicNews',
      component: () => import('./views/gywm/dynamicNews.vue')
    },    
    {
      path: '/teamBuilding',
      name: 'teamBuilding',
      component: () => import('./views/gywm/teamBuilding.vue')
    },
    // 文档中心
    {
      path: '/developmentTool',
      name: 'developmentTool',
      component: () => import('./views/wdzx/developmentTool.vue')
    },
    {
      path: '/exchangeOfSkills',
      name: 'exchangeOfSkills',
      component: () => import('./views/wdzx/exchangeOfSkills.vue')
    },
    {
      path: '/openSourceCode',
      name: 'openSourceCode',
      component: () => import('./views/wdzx/openSourceCode.vue')
    },
    {
      path: '/platformAccess',
      name: 'platformAccess',
      component: () => import('./views/wdzx/platformAccess.vue')
    },
  ]
})
